import React, { Component } from 'react';
import actions from './store/actions/index';
import { connect } from 'react-redux';
class Button extends Component {

    render() {
        return (
            <>
                <button onClick={ev => {
                    // this.props.store.dispatch(actions.computed.change())
                    this.props.change()
                }}>点击</button>
            </>
        );
    }
}

// export default Button;
export default connect(null,actions.computed)(Button);